package net.oschina.archx.spring.mongo.service;

import net.oschina.archx.spring.mongo.document.Subscriber;
import net.oschina.archx.spring.mongo.repository.SubscriberRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * SubscriberService
 *
 * @author Archx[archx@foxmail.com]
 * @date 2016/4/12 0012
 */
@Service
public class SubscriberService {

    @Autowired
    private SubscriberRepository repository;

    Subscriber subscribe(Subscriber subscriber) {
        return repository.save(subscriber);
    }
}
